<%@ page pageEncoding="UTF-8"%>
<%@ page import="com.google.appengine.api.users.*"%>
<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
	String operationUrl = userService.isUserLoggedIn() ? userService
			.createLogoutURL(request.getRequestURI()) : userService
			.createLoginURL(request.getRequestURI());
	String operationText = userService.isUserLoggedIn() ? "注销 " + user.getEmail() : "登录";
%>
<li><a href="<%=operationUrl%>"><%=operationText%></a></li>
